<?php

namespace App\Policies;

use App\Models\User;
use App\Models\UserNumHistory;
use Illuminate\Auth\Access\HandlesAuthorization;

class UserNumHistoryPolicy
{
    use HandlesAuthorization;

    public function destroy(User $user, UserNumHistory $user_num_history)
    {
        return $user_num_history->user_id === $user->id;
    }
}
